package com.bp.hearthealth.pulse.lnapps.bp_di

import com.bp.hearthealth.pulse.lnapps.bp_network.BpRetrofitManager
import com.bp.hearthealth.pulse.lnapps.bp_network.bp_api.ApiBpService
import com.bp.hearthealth.pulse.lnapps.bp_ui.bp_fragment.bp_lifestyle.BpLifeStyleRepository
import com.bp.hearthealth.pulse.lnapps.bp_ui.bp_fragment.bp_lifestyle.BpLifeStyleViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

val lifeStyleLib = module {

    single {
        BpLifeStyleRepository(
            BpRetrofitManager.initRetrofit().getService(ApiBpService::class.java)
        )
    }

    viewModel { BpLifeStyleViewModel(get()) }
}